var Vue = require('vue');
new Vue(require('../components/app.vue'));
/*
Vue.http.interceptors.push(function(request, next){

    // modify request
    request.url = DOMAIN_PATH + request.url;
    request.headers.set('Authorization', "Bearer " + localStorage.getItem("U_INFO"));

// continue to next interceptor
    next(function (response){

        // modify response
        if(response.ok){
            return response;
        }else{
            alert("错误处理");
        }

    });
});

var regionsResource = {
    resource : Vue.resource(INTERFACE_API.REGIONS + '{/region_id}'),
    getRegions : function(){
        return this.resource.get();
    },
    getRegion : function(region_id){
        return this.resource.get({region_id: region_id});
    }
}*/
